/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Schnittstellen.Graphisches.Texturen;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;

/**
 *
 * @author geez
 */
public class BildTextur extends Textur {

    public BildTextur(String name) {
        editorName = name;
    }

    public BufferedImage getBufferedImage() {
        BufferedImage res = null;
        try {
            res = ImageIO.read(new File("assets/Textures/" + editorName));
        } catch (IOException ex) {
            Logger.getLogger(BildTextur.class.getName()).log(Level.SEVERE, null, ex);
        }
        return res;
    }
}
